package com.bsoft.gol.editor.editor.qo;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * 表单权限表
 */

public class EditorAuthorityQo implements Serializable {

    private String questionnaireId;
    /**
     * 创建人(这里传userId)
     */
    private String createId;
    /**
     * 修改人(这里传userId)
     */
    private String alterId;
    /**
     * 1.表示机构权限,2表示科室权限,3表示人拥有的权限
     */
    private String type;
    /**
     * 权限集合
     */
    private List<AuthorityEntity> list;


    public String getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(String questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getAlterId() {
        return alterId;
    }

    public void setAlterId(String alterId) {
        this.alterId = alterId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<AuthorityEntity> getList() {
        return list;
    }

    public void setList(List<AuthorityEntity> list) {
        this.list = list;
    }

    public static class AuthorityEntity{

        private String id;
        private String name;
        /**
         * 当选择科室权限的时候只传机构代码时,需要自己查询科室代码
         */
        private String deptAuthorityFlag;
        private String parentId;
        private String parentName;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        public String getParentName() {
            return parentName;
        }

        public void setParentName(String parentName) {
            this.parentName = parentName;
        }

        public String getDeptAuthorityFlag() {
            return deptAuthorityFlag;
        }

        public void setDeptAuthorityFlag(String deptAuthorityFlag) {
            this.deptAuthorityFlag = deptAuthorityFlag;
        }
    }
}